package com.caption.api.client.base;

import com.caption.api.entity.base.ApiResponse;

/**
 * 外调模块抽象类
 * @param <Result>
 * @param <Condition>
 */
public abstract class BaseApiClient <Result extends ApiResponse<?>,Condition> {

    public Result invoke(Condition condition){
        return this.execute(getInterfaces(),condition);
    }

    public Result execute(String interfacesId,Condition condition){
       return null;
    }

    public String getInterfaces(){
        return null;
    }

}
